package com.ymk.service.impl;

import com.ymk.base.mybatis.DaoRouter;
import com.ymk.base.mybatis.Pagination;
import com.ymk.bo.member.MemberMobileLogBO;
import com.ymk.service.IMemberMobileLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 莫参商
 * @since 2023-07-06
 */
@Service
public class MemberMobileLogService implements IMemberMobileLogService {

    @Override
    public MemberMobileLogBO get(Map param) {
    return this.daoRouter.queryForObject("MemberMobileLog.loadMemberMobileLog",param);
    }

    @Override
    public List<MemberMobileLogBO> list(Map param) {
        return this.daoRouter.query("MemberMobileLog.loadMemberMobileLog",param);
    }

    @Override
    public List<MemberMobileLogBO> listForPage(Pagination pagination) {
        return this.daoRouter.query("MemberMobileLog.loadMemberMobileLogForPage",pagination);
    }

    @Override
    public void post(MemberMobileLogBO param) {
        this.daoRouter.insert("AMemberMobileLog.insertMemberMobileLog",param);
    }

    @Override
    public void update(MemberMobileLogBO param) {
        this.daoRouter.update("AMemberMobileLog.updateMemberMobileLog",param);
    }

    @Override
    public void del(MemberMobileLogBO param) {
        this.daoRouter.update("AMemberMobileLog.delMemberMobileLog",param);
    }

    @Autowired
    private DaoRouter daoRouter;

}
